﻿/*
 * Created by SharpDevelop.
 * User: Ja
 * Date: 8/31/2011
 * Time: 7:52 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace bminterface
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{

        // Add panel for graph ploting
        GraphPanel graphPanel;

		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
            //
            this.graphPanel = new GraphPanel();
			
			SetStyle(ControlStyles.UserPaint, true);
		    SetStyle(ControlStyles.AllPaintingInWmPaint, true);
		    SetStyle(ControlStyles.DoubleBuffer, true);
		    SetStyle(ControlStyles.UserPaint, true);
		    SetStyle(ControlStyles.AllPaintingInWmPaint, true);
		    SetStyle(ControlStyles.DoubleBuffer, true);
			
			InitializeComponent();
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
			

		}
		
		void Timer1Tick(object sender, EventArgs e)
		{
		}

        private void MainForm_Load(object sender, EventArgs e)
        {

        }

        private void showHideGraphsButton_Click(object sender, EventArgs e)
        {
            // Toggling show state of GraphPanel
            graphPanel.Visible = !graphPanel.Visible;
        }

        private void MainForm_Move(object sender, EventArgs e)
        {
            this.graphPanel.SetPostion(this.Location.X + this.Width, this.Location.Y);
        }
		
	}
}
